#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QButtonGroup>
#include <QTabWidget>
#include <QDebug>
#include <QTableWidget>
#include <QKeyEvent>
#include <QEvent>







QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_addButton_clicked();

    void on_delButton_clicked();

    void on_modifyButton_clicked();

    void on_DoubleTabitem_clicked();

public:
    bool event(QEvent* ev);
    void keyPressEvent(QKeyEvent* ev);

public:
    static int  currentIndex;
    static int  cnt;

private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
